<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>小马视频－工具条和弹出框</title>
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
</head>
<body>
    
    <div class="container" style="margin-left:100px;">
        <h3>工具条（Tooltip）</h3>
        
        <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="左提示条">左</button>

        <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="上提示条">上</button>

        <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="下提示条">下</button>

        <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="right" title="右提示条">右</button>

        <hr/>
        
        <h3>弹出框（Popover）</h3>
        
        <button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="left" data-content="左弹出框">
          左
        </button>

        <button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="top" data-content="上弹出框">
          上
        </button>

        <button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="bottom" data-content="下弹出框">
          下
        </button>

        <button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="right" data-content="右弹出框">
          右
        </button>

        
    </div>
    
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
    
    <script type="text/javascript">
        $(function() {
            $('[data-toggle="tooltip"]').tooltip();
            $('[data-toggle="popover"]').popover();
        });
    </script>
    
</body>
</html>

<!--

-->
